/*
** getscrn.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include "pictor.h"

/*
** Saves a section of the screen to a buffer.
*/
void getscrn(int *buffer,int top,int left,int height,int width)
{
	int row,col;

	for(row = 0;row < height;row++) {
		setvpos(top + row,left);
		for(col = 0;col < width;col++) {
			*buffer++ = vgetca();  /* get character & attribute */
		}
	}

} /* getscrn */
